
const redis = require('redis');
const client = redis.createClient({
    host: '127.0.0.1',
    port: 6379,  
    no_ready_check:true
});
const session = require('express-session')

// 需要启动redis-server
let RedisStore = require('connect-redis')(session)
const store = new RedisStore({
    client,
    logErrors: true
});



module.exports = {
    client,
    store
}